package com.ruoyi.novel.domain;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 会员订单对象 a_order
 *
 * @author 张三
 * @date 2025-04-18
 */
@TableName("a_order")
public class Order  extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /** 用户 */
    @Excel(name = "用户")
    private Integer userId;

    /** 积分商品 */
    private Integer integralId;

    /** 视频 */
    private Integer videoId;

    /** 交友 */
    private Integer friendsId;

    /** 社区 */
    private Integer communityId;

    /** 小说/漫画 */
    private Integer novelId;

    /** vip */
    private Integer vipId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNum;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 支付金额 */
    @Excel(name = "支付金额")
    private BigDecimal money;

    /** 会员类型 0普通用户 1日会员 2月会员 3年会员 4永久vip */
    private Integer level;

    /** 订单类型 0线上支付 1后台修改 */
    @Excel(name = "订单类型")
    private Integer type;

    /** 订单模式 0会员订单 1充值订单 2积分订单 */
    private Integer mode;

    /** 交友订单类型 0QQ 1微信 2手机号 */
    private Integer friendsType;

    /** 状态 0待支付 1已支付 */
    @Excel(name = "状态")
    private Integer state;

    @TableField(exist = false)
    private String title;



    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setUserId(Integer userId)
    {
        this.userId = userId;
    }

    public Integer getUserId()
    {
        return userId;
    }
    public void setIntegralId(Integer integralId)
    {
        this.integralId = integralId;
    }

    public Integer getIntegralId()
    {
        return integralId;
    }
    public void setFriendsId(Integer friendsId)
    {
        this.friendsId = friendsId;
    }

    public Integer getFriendsId()
    {
        return friendsId;
    }
    public void setCommunityId(Integer communityId)
    {
        this.communityId = communityId;
    }

    public Integer getCommunityId()
    {
        return communityId;
    }
    public void setNovelId(Integer novelId)
    {
        this.novelId = novelId;
    }

    public Integer getNovelId()
    {
        return novelId;
    }
    public void setOrderNum(String orderNum)
    {
        this.orderNum = orderNum;
    }

    public String getOrderNum()
    {
        return orderNum;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setMoney(BigDecimal money)
    {
        this.money = money;
    }

    public BigDecimal getMoney()
    {
        return money;
    }
    public void setLevel(Integer level)
    {
        this.level = level;
    }

    public Integer getLevel()
    {
        return level;
    }
    public void setType(Integer type)
    {
        this.type = type;
    }

    public Integer getType()
    {
        return type;
    }
    public void setMode(Integer mode)
    {
        this.mode = mode;
    }

    public Integer getMode()
    {
        return mode;
    }
    public void setState(Integer state)
    {
        this.state = state;
    }

    public Integer getState()
    {
        return state;
    }

    public Integer getVipId() {
        return vipId;
    }

    public void setVipId(Integer vipId) {
        this.vipId = vipId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getFriendsType() {
        return friendsType;
    }

    public void setFriendsType(Integer friendsType) {
        this.friendsType = friendsType;
    }

    public Integer getVideoId() {
        return videoId;
    }

    public void setVideoId(Integer videoId) {
        this.videoId = videoId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("integralId", getIntegralId())
            .append("friendsId", getFriendsId())
            .append("communityId", getCommunityId())
            .append("novelId", getNovelId())
            .append("orderNum", getOrderNum())
            .append("phone", getPhone())
            .append("money", getMoney())
            .append("level", getLevel())
            .append("type", getType())
            .append("mode", getMode())
            .append("state", getState())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
